
// #ifndef VUE3
import Vue from 'vue'
import App from './App'
import store from './store/index'
import './styles/global.scss'
//注册过滤器
// import * as filters from './filters'
// Object.keys(filters).forEach((key)=>{
//    console.log(key);
//    console.log(filters[key]);
//   Vue.filter(key,filters[key])
// })

// import * as filters from './filters/index';

// 注册过滤器
// Object.keys(filters).forEach((key) => {
//   Vue.filter(key, filters[key]);
// });

Vue.config.productionTip = false

App.mpType = 'app'

const app = new Vue({
    ...App,
    store
})



app.$mount()
// #endif

// #ifdef VUE3
import { createSSRApp } from 'vue'
import App from './App.vue'
import * as filters from './filters/index';
import './styles/global.scss'
import store from './store/index'



export function createApp() {
  const app = createSSRApp(App)
  app.use(store)
  app.config.globalProperties.$filters = filters
  return {
    app,
    store
  }
}


// #endif